package com.summer.safe.service;

import com.summer.safe.base.BaseService;
import com.summer.safe.dao.GenSchemeDao;
import com.summer.safe.entity.GenScheme;
import org.springframework.stereotype.Service;

/**
 * 生成方案Service
 *
 */
@Service
public class GenSchemeService extends BaseService<GenSchemeDao, GenScheme> {
    /**
     * 根据表的名字获得当前表代码生成的配置
     * @param tableId
     * @return
     */
    public GenScheme getTableId( String tableId){

        return dao.getTableId(tableId);
    }

    /**
     * 据表的名字获得当前表代码生成的配置
     */
    public GenScheme getGenScheme(String tableName){
        return dao.getGenScheme(tableName);
    }

}
